package org.abadirou.cdebacker.flst.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

import org.abadirou.cdebacker.flst.api.TypeChambre;

@Entity(name = "TypeChambre")
@NamedQueries({
	@NamedQuery(name = "TYPE_BY_NAME", query = "FROM TypeChambre where type = :type")
})
public class TypeChambreImpl implements TypeChambre{
	
	public static final String TYPE_BY_NAME = "TYPE_BY_NAME";

	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    private Long id;
	
	private String type;
	
	public TypeChambreImpl (){
		
	}
	
	public TypeChambreImpl(String typeChambre) {
		this.type = typeChambre;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public String getType() {
		return type;
	}

}
